package com.ruoyi.iot.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 区域对象 iot_region
 *
 * @author rww
 * @date 2023-11-02
 */
public class IotRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonFormat(shape =JsonFormat.Shape.STRING)
    private Long id;
    @JsonFormat(shape =JsonFormat.Shape.STRING)
    private Long userId;

    /** 区名称 */
    @Excel(name = "区名称")
    private String name;

    /** pid */
    @Excel(name = "pid")
    @JsonFormat(shape =JsonFormat.Shape.STRING)
    private Long pid;

    /** 经纬度范围 */
    @Excel(name = "经纬度范围")
    private String location;

    /** 土地使用性质 */
    @Excel(name = "土地使用性质")
    private String nature;

    /** 面积 */
    @Excel(name = "面积")
    private Double area;

    /** 删除标识  0删除 1存在 */
    @Excel(name = "删除标识  0删除 1存在")
    private Integer status;

    /** 说明 */
    @Excel(name = "说明")
    private String regionDesc;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String img;

    /** 类别 */
    @Excel(name = "类别")
    private Integer type;

    /** 配置 */
    @Excel(name = "配置")
    private String config;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setNature(String nature)
    {
        this.nature = nature;
    }

    public String getNature()
    {
        return nature;
    }
    public void setArea(Double area)
    {
        this.area = area;
    }

    public Double getArea()
    {
        return area;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setRegionDesc(String regionDesc)
    {
        this.regionDesc = regionDesc;
    }

    public String getRegionDesc()
    {
        return regionDesc;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setConfig(String config)
    {
        this.config = config;
    }

    public String getConfig()
    {
        return config;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pid", getPid())
            .append("location", getLocation())
            .append("nature", getNature())
            .append("area", getArea())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("regionDesc", getRegionDesc())
            .append("img", getImg())
            .append("type", getType())
            .append("config", getConfig())
            .toString();
    }
}
